package com.sh.healthtv.net.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by zhouyucheng on 2017/8/10.
 */

public class Epg implements Serializable, Parcelable {


    /**
     * id : a68ff954fe0246559bd1b843b1a5f917
     * name : 发现身边小细节
     * imageUrl : /CMS/20160629/2016062909571554397_111_78.png?id = 457&crc =
     */

    private String useid;
    private String name;
    private String imageUrl;
    private String isBeenCollect;
    private String progress;
    private int hisState;
    private int hisPlayed;

    public String getUseid() {
        return useid;
    }

    public void setUseid(String useid) {
        this.useid = useid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getIsBeenCollect() {
        return isBeenCollect;
    }

    public void setIsBeenCollect(String isBeenCollect) {
        this.isBeenCollect = isBeenCollect;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    public int getHisState() {
        return hisState;
    }

    public void setHisState(int hisState) {
        this.hisState = hisState;
    }

    public int getHisPlayed() {
        return hisPlayed;
    }

    public void setHisPlayed(int hisPlayed) {
        this.hisPlayed = hisPlayed;
    }

    @Override
    public String toString() {
        return "Epg{" +
                "useid='" + useid + '\'' +
                ", name='" + name + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", isBeenCollect='" + isBeenCollect + '\'' +
                ", progress='" + progress + '\'' +
                ", hisState=" + hisState +
                ", hisPlayed=" + hisPlayed +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.useid);
        dest.writeString(this.name);
        dest.writeString(this.imageUrl);
        dest.writeString(this.isBeenCollect);
        dest.writeString(this.progress);
        dest.writeInt(this.hisState);
        dest.writeInt(this.hisPlayed);
    }

    public Epg() {
    }

    protected Epg(Parcel in) {
        this.useid = in.readString();
        this.name = in.readString();
        this.imageUrl = in.readString();
        this.isBeenCollect = in.readString();
        this.progress = in.readString();
        this.hisState = in.readInt();
        this.hisPlayed = in.readInt();
    }

    public static final Creator<Epg> CREATOR = new Creator<Epg>() {
        @Override
        public Epg createFromParcel(Parcel source) {
            return new Epg(source);
        }

        @Override
        public Epg[] newArray(int size) {
            return new Epg[size];
        }
    };
}
